Exceptions.test.js ➔ ???   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 8
rs 10

1 Function

Rating   Name   Duplication   Size   Complexity  
A Exceptions.test.js ➔ ... ➔ ??? 0 3 1
1
import React from 'react'
2
import { DataException, EditorException } from '../../src/components/Exceptions.js'
3
4
it('run exceptions correctly', () => {
5
    expect(() => {
6
        throw new DataException()
7
    }).toThrow()
8
    expect(() => {
9
        throw new EditorException()
10
    }).toThrow()
11
})